package com.jvm.threadgroup;

// 获取根线程组
public class Demo3 {

    public static void main(String[] args) {
        /**
         *
         * 主线程的线程组为 main
            根线程组为 system
         *
         */
        System.out.println(Thread.currentThread());
        System.out.println(Thread.currentThread().getThreadGroup());
        System.out.println(Thread.currentThread().getThreadGroup().getParent());
        System.out.println(Thread.currentThread().getThreadGroup().getParent().getParent());
    }

}
